﻿///***************************************************************
/// 시  스  템 : Updms.Crd.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Crd1010m_NT
/// 파  일  명 : Crd1010m_NT.cs
/// 설      명 : 카드기본정보
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-07-16 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Crd.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Crd1010m_NT : Base.AppFramework.RuleBase
	{
		public Crd1010m_NT()
		{
		}

		#region GetSearchCount
		
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}
		
		#endregion

		#region SelectProcess
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}
		
		#endregion

		#region GetPaymntDtRegion
		/// <summary>
		/// 카드별 결제일 범위 조회 - Crd1011m(카드결제일관리)에서 사용
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetPaymntDtRegion(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetPaymntDtRegion(lo_dp);
			}
		}

		#endregion

		#region GetNewCardCd

		[AutoComplete]
		public string GetNewCardCd()
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetNewCardCd();
			}
		}

		#endregion

		#region GetCardInfoList
		/// <summary>
		/// 등록된 카드정보 조회(Y : 사용여부가 Y인것, N : 사용여부가 N인것, 나머지는 전체조회)
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCardInfoList(string ls_regi_yn)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetCardInfoList(ls_regi_yn);
			}
		}

		#endregion

		#region GetCardInfoListByYearly
		/// <summary>
		/// 연도별 사용내역이 있는 카드의 목록
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCardInfoListByYearly(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetCardInfoListByYearly(lo_dp);
			}
		}

		#endregion

		#region GetCardInfo
		/// <summary>
		/// 카드코드로 카드정보조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCardInfo(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetCardInfo(lo_dp);
			}
		}

		#endregion

		#region GetCardUsedLocationMarkers
		/// <summary>
		/// 카드사용장소
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCardUsedLocationMarkers(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INFO _dac = new Dac.Crd_Dac_UPDMS_CRD_INFO())
			{
				return _dac.GetCardUsedLocationMarkers(lo_dp);
			}
		}

		#endregion

	}
}
